<div class="main-container" id="main-container" xmlns:th="http://www.thymeleaf.org">
    <div class="main-container-inner">
        <div class="main-content">
            <div class="page-content">
                <div class="row">
                    <form class="form-horizontal"  role="form" id="add_form" >
                        <h5 style="padding-left: 10px; color: blue">基本信息</h5>
                        <hr/>
                        <div class="col-md-12 clearfix ">
                            <div class="form-group col-md-6">
                                <label for="dtype" class="col-sm-3 control-label">产品名称</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="dtype" name="dtype" />
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dname" class="col-sm-3 control-label">产品编码</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="dname" name="dname" />
                                    编码要唯一
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">构建工具</label>
                                <div class="col-sm-8">
                                    <select class="form-control">
                                        <option value="1">Maven</option>
                                        <option value="2">Gradle</option>
                                    </select>
                                    优先实现对maven的支持
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">打包类型</label>
                                <div class="col-sm-8">
                                    <select class="form-control">
                                        <option value="1">JAR</option>
                                        <option value="2">WAR</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">版本前缀</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">开发平台</label>
                                <div class="col-sm-8">
                                    <select class="form-control" id="dvalue" name="dvalue">
                                        <option>JAVA</option>
                                    </select>
                                    目前仅实现对java的支持
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">所属租户</label>
                                <div class="col-sm-8">
                                    <select class="form-control">
                                    </select>
                                    超管理员可选，其他用户默认自己所属的租户
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">所属机构</label>
                                <div class="col-sm-8">
                                    <select class="form-control">
                                    </select>
                                    超级管理员可选指定租户下所有的机构，其他用户默认可以选择自己机构及子机构
                                </div>
                            </div>
                        </div>
                        <h5 style="padding-left: 10px;color: blue">托管信息</h5>
                        <hr/>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">托管平台</label>
                                <div class="col-sm-8">
                                    <select class="form-control" id="dvalue" name="dvalue">
                                        <option>GIT</option>
                                        <option>SVN</option>
                                    </select>
                                    优先实现对GIT的支持
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">托管地址</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="dname" name="dname" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">平台用户</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" id="dname" name="dname" />
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">平台密码</label>
                                <div class="col-sm-8">
                                    <input type="password" class="form-control" id="dname" name="dname" />
                                    可逆加密存储
                                </div>
                            </div>
                        </div>
                        <h5 style="padding-left: 10px;color: blue">分支信息</h5>
                        <hr/>
                        <div class="col-md-12 clearfix">
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">分支名称</label>
                                <div class="col-sm-8">
                                    <input type="password" class="form-control" id="dname" name="dname" />
                                </div>
                            </div>
                            <div class="form-group col-md-6">
                                <label for="dvalue" class="col-sm-3 control-label">分支别名</label>
                                <div class="col-sm-8">
                                    <input type="password" class="form-control" id="dname" name="dname" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12 clearfix text-center">
                            <a class="btn btn-primary"><i class="glyphicon-plus"></i></a>
                            <a class="btn btn-primary"><i class="glyphicon-minus"></i></a>
                        </div>
                            <!--<div class="form-group col-md-12">
                                <table class="table table-condensed table-bordered">
                                    <thead>
                                        <tr>
                                            <th class="text-center">分支</th>
                                            <th class="text-center">分支别名</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><input type="password" class="form-control" id="dname" name="dname"></td>
                                            <td><input type="password" class="form-control" id="dname" name="dname"></td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <th colspan="2" class="text-center"><a class="btn btn-primary">新增</a></th>
                                        </tr>
                                    </tfoot>
                                </table>-->
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $("#linkType").change(function () {
        if($(this).val() == 1) {
            $("#linkType23").hide();
            $("#linkType1").show();
        } else {
            $("#linkType1").hide();
            $("#linkType23").show();
        }
    });
    function form_sub() {
        alert("已保存")
    }
</script>